package com.lvmama.pangolin.qnr.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lvmama.pangolin.entity.qnr.QNRTicket_CommodityDetail;
import com.lvmama.pangolin.entity.spider.TicketCommodity;
import com.lvmama.pangolin.mybatis.mapper.qnr.QNRTicketCommodityDetailMapper;
import com.lvmama.pangolin.qnr.service.QNRTicketCommodityDetailService;
@Transactional
@Service
public class QNRTicketCommodityDetailServiceImpl implements QNRTicketCommodityDetailService{
	/**  
	* @Title：TCTicketCommodityDetailServiceImpl.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月17日上午11:19:51  
	*/
	@Autowired
	private QNRTicketCommodityDetailMapper qnrTicketCommodityDetailMapper;
	@Override
	public List<QNRTicket_CommodityDetail> getQNRTicket_CommodityDetailListByID(Map<String, Object> map)
			throws Exception {
		return qnrTicketCommodityDetailMapper.getQNRTicket_CommodityDetailListByID(map);
	}
	public int insertCommodityDetailLog(QNRTicket_CommodityDetail detail)throws Exception{
		return qnrTicketCommodityDetailMapper.insertCommodityDetailLog(detail);
	}
	public List<QNRTicket_CommodityDetail> selectAllLog(){
		return qnrTicketCommodityDetailMapper.selectAllLog();
	}
	public List<QNRTicket_CommodityDetail> queryLogByMap(Map<String,Object> map){
		return qnrTicketCommodityDetailMapper.queryLogByMap(map);
	}
	public int deleteLogByMap(Map<String,Object> map){
		return qnrTicketCommodityDetailMapper.deleteLogByMap(map);
	}
	public int updateLog(QNRTicket_CommodityDetail detail){
		return qnrTicketCommodityDetailMapper.updateLog(detail);
	}
	public int deleteLogByID(String detail_id){
		return qnrTicketCommodityDetailMapper.deleteLogByID(detail_id);
	}
	@Override
	public int insert(TicketCommodity record)
	{
		return qnrTicketCommodityDetailMapper.insert(record);
	}
	@Override
	public int insertSelective(TicketCommodity record)
	{
		return qnrTicketCommodityDetailMapper.insertSelective(record);
	}
	@Override
	public List<QNRTicket_CommodityDetail> getQNRTicket_CommodityDetailLogListByID(Map<String, Object> map) throws Exception {
		return qnrTicketCommodityDetailMapper.getQNRTicket_CommodityDetailLogListByID(map);
	}
	@Override
	public int deleteByTaskAndProd(TicketCommodity record)
	{
		return qnrTicketCommodityDetailMapper.deleteByTaskAndProd(record);
	}
}
